using System.Collections.Generic;
using com.tc.util;
using  com.tc.zigbee.zcl;
using  com.tc.zigbee.entity;
using  com.tc.zigbee.zcl.command;
namespace com.tc.zigbee.mt.income
{
    public class ComplexDescriptorResponse : IncomeMessage
    {

        public ComplexDescriptor getComplexDescriptor()
        {
            return complexDescriptor;
        }
        byte status;
        ComplexDescriptor complexDescriptor = new ComplexDescriptor();
        public ComplexDescriptorResponse(byte[] command)
        {
            int i = 0;
            byte[] ad = new byte[2];
            ad[0] = command[i++];
            ad[1] = command[i++];
            complexDescriptor.srcAddr = DataUtil.shortValue(ad);
            status = command[i++];
            ad[0] = command[i++];
            ad[1] = command[i++];
            complexDescriptor.nwkAddr = DataUtil.shortValue(ad);
            complexDescriptor.complexLength = command[i++];
            complexDescriptor.complexDescriptor = new byte[this.complexDescriptor.complexLength];
            for (int j = 0; j < this.complexDescriptor.complexLength; j++)
                this.complexDescriptor.complexDescriptor[j] = command[i++];
        }

    }
}